package com.forage.exp.service.Impl;

import com.forage.exp.mapper.KindMapper;
import com.forage.exp.po.Kind;
import com.forage.exp.service.KindService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.iceclean.logtrace.annotation.EnableLogTrace;
import top.iceclean.logtrace.bean.Logger;

import java.util.List;

/**
 * @author : Ice'Clean
 * @date : 2022-05-12
 */
@Service
@EnableLogTrace
public class KindServiceImpl implements KindService {

    @Autowired
    private KindMapper kindMapper;

    private Logger logTrace;

    @Override
    public List<Kind> getAllKinds() {
        return kindMapper.selectList(null);
    }
}
